package com.wn.purchaeReturn.entity;

import java.io.Serializable;

/**
 * Pur_PurchaseBillDetail
 * @author 
 */
public class PurPurchasebilldetailKey implements Serializable {
    private String purchaseno;

    private Integer purchaselno;

    private static final long serialVersionUID = 1L;

    public String getPurchaseno() {
        return purchaseno;
    }

    public void setPurchaseno(String purchaseno) {
        this.purchaseno = purchaseno;
    }

    public Integer getPurchaselno() {
        return purchaselno;
    }

    public void setPurchaselno(Integer purchaselno) {
        this.purchaselno = purchaselno;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PurPurchasebilldetailKey other = (PurPurchasebilldetailKey) that;
        return (this.getPurchaseno() == null ? other.getPurchaseno() == null : this.getPurchaseno().equals(other.getPurchaseno()))
            && (this.getPurchaselno() == null ? other.getPurchaselno() == null : this.getPurchaselno().equals(other.getPurchaselno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPurchaseno() == null) ? 0 : getPurchaseno().hashCode());
        result = prime * result + ((getPurchaselno() == null) ? 0 : getPurchaselno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", purchaseno=").append(purchaseno);
        sb.append(", purchaselno=").append(purchaselno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}